// pages/publish/publish.js
Page({
  data: {
      content:''
  },
  //content数据响应
  inputContent: function(e) {
		this.setData({
			content: e.detail.value//e.detail.value表示输入框的当前值
    })
    // console.log(this.data.content)
	},

  // 发布
  sendMessage(){
    wx.request({
      url: 'http://localhost:8080/message',
      method:'POST',
      data:{
        content:this.data.content,

      }
    })
  }
})